package com.honglang.module.leaveWord.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.honglang.module.user.entity.User;


@Entity
@Table(name="leaveWord")
public class LeaveWord {

	/**
	 * @uml.property  name="id"
	 */
	private Integer id;

	/**
	 * @uml.property  name="Content"
	 */
	private String content;

	/**
	 * @uml.property  name="leaveWordDate"
	 */
	private Date leaveWordDate;

	/** 
	 * @uml.property name="author"
	 * @uml.associationEnd aggregation="shared" inverse="leaveWord:com.honglang.entity.User"
	 */
	private User author;


	
	/**
	 * Getter of the property <tt>Content</tt>
	 * @return  Returns the content.
	 * @uml.property  name="Content"
	 */
	@Column
	public String getContent() {
		return content;
	}

	/**
	 * Setter of the property <tt>Content</tt>
	 * @param Content  The content to set.
	 * @uml.property  name="Content"
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * Getter of the property <tt>leaveWordDate</tt>
	 * @return  Returns the leaveWordDate.
	 * @uml.property  name="leaveWordDate"
	 */
	@Column
	public Date getLeaveWordDate() {
		return leaveWordDate;
	}

	/**
	 * Setter of the property <tt>leaveWordDate</tt>
	 * @param leaveWordDate  The leaveWordDate to set.
	 * @uml.property  name="leaveWordDate"
	 */
	public void setLeaveWordDate(Date leaveWordDate) {
		this.leaveWordDate = leaveWordDate;
	}

	/** 
	 * Getter of the property <tt>author</tt>
	 * @return  Returns the author.
	 * @uml.property  name="author"
	 */
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn
	public User getAuthor() {
		return author;
	}

	/** 
	 * Setter of the property <tt>author</tt>
	 * @param author  The author to set.
	 * @uml.property  name="author"
	 */
	public void setAuthor(User author) {
		this.author = author;
	}

	/**
	 * Getter of the property <tt>id</tt>
	 * @return  Returns the id.
	 * @uml.property  name="id"
	 */
	@Id
	public Integer getId() {
		return id;
	}

	/**
	 * Setter of the property <tt>id</tt>
	 * @param id  The id to set.
	 * @uml.property  name="id"
	 */
	public void setId(Integer id) {
		this.id = id;
	}
}
